Set CARGO_HOME=/var/tmp/.cargo to avoid conflict with /root/.cargo
which exists as a non-directory on Fedora 43/44 base images, causing
"failed to create directory: File exists (os error 17)".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
COPY tests/bootc-integration /build/tests/bootc-integration
WORKDIR /build/tests/bootc-integration
-RUN cargo build --release && \
+RUN CARGO_HOME=/var/tmp/.cargo cargo build --release && \
cp target/release/ostree-bootc-integration-tests /usr/bin/ && \
- rm -rf /build
+ rm -rf /build /var/tmp/.cargo
WORKDIR /ostree-test